package com.acme;
import com.acme.bankapp.service.*;
import com.acme.bankapp.domain.*;

public class BankApplication {
	public static void main(String[] args) {
		Bank bank = new Bank(10);
		//Client[] clis;
		//Account[] acc;
		
		Client client1 = new Client("Vasya", Gender.FEMALE);
		Account acc1 = new SavingAccount(10);
		client1.addAccount(acc1);
		bank.addClient(client1);
		
		Client client2 = new Client("Vat", Gender.MALE);
		Account acc2 = new SavingAccount(20);
		Account acc3 = new CheckingAccount(20, 10);
		client2.addAccount(acc2);
		client2.addAccount(acc3);
		bank.addClient(client2);
		
		BankService.printBalance(bank);
		BankService.modifyBank(bank);
		BankService.printBalance(bank);
		BankService.printMaximumAmountToWithdraw(bank);
		//clis = bank.getClients();
		
		
		
	}
	
	

}
